package com.yunzheng.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author Sun
 * @date 2020-08-01 17:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PasswordChangeDTO {

	@NotBlank(message = "旧密码不能为空")
	@Length(min = 6, max = 16, message = "密码长度不合标准(6~16位)")
	public String oldPasswd;

	@NotBlank(message = "新密码不能为空")
	@Length(min = 6, max = 16, message = "密码长度不合标准(6~16位)")
	public String newPasswd;


}

